import Https from "@/utils/Https";

export const queryPageDataReq = async (params) =>
  await Https.post("/tables", params);

export const addItemReq = async (params) =>
  await Https.post("/book/record/addRecord", params, true);
export const updateItemReq = async (params) =>
  await Https.post("/book/record/updateRecord", params, true);
export const deleteItemReq = async (params) =>
  await Https.post("/book/record/logicDeleteRecord", params, true);

export const queryItemInfoReq = async (params) =>
  await Https.post("/book/record/recordDetail", params);

export const toggleStateReq = async (params) =>
  await Https.post("/tables", params, true);
//代预约排课列表
// export const getProxyScheduleListFun = async params => await Https.post('/course/infoList', params, true)
export const getProxyScheduleListFun = async (params) =>
  await Https.post("/proxy/appoint/proxyScheduleList", params, true);
//查询会员卡
export const getUserVipCardListFun = async (params) =>
  await Https.post("/proxy/appoint/userVipcardList", params, true);
//营业时间预约情况
export const getTradeHoursFun = async (params) =>
  await Https.get("/proxy/appoint/getTradeHours", params, true);
//代客预约
export const saveOrderFun = async (params) =>
  await Https.post("/proxy/appoint/proxyAppointSave", params, true);
//学员信息
export const studentListByCourseFun = async (params) =>
  await Https.post("/proxy/appoint/studentListByCourse", params, true);
//根据会员ID查询用户的会员卡
export const getCardListByUserIdFun = async (params) =>
  await Https.post("/wechatuser/infoDetail", params, true);
